* {
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    height: 100%;
    background-color: #faf6f6;
}

.container {
    width: 1180px;
    margin: 0 auto;
}

#banner {
    width: 100%;
    height: 530px;
    // position: relative;

    .swiper {
        // position: relative;
        width: 100%;
        height: 530px;

        img {
            width: 100%;
            height: 100%;
        }

        .swiper-button-prev {
            margin-left: 485px;
            color: #b0b0b0;

        }

        .swiper-button-next {
            margin-left: 234px;
            color: #b0b0b0;
        }
    }
}

// 轮播结束
.category-nav {
    position: relative;
}

.category-position {
    height: 530px;
    position: absolute;
    top: -530px;
    left: 0px;
    z-index: 1;
    cursor: pointer;
}

.category {
    width: 230px;
    height: 530px;
    float: left;
    background: rgba(51, 51, 51, 0.7);


}

.category-item-all {
    height: 30px;
    display: block;
    padding: 9px 80px;
    color: #fff;
    font-size: 14px;
    line-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgb(32, 31, 31, 0.5);
    cursor: pointer;
}

.category-item {
    width: 230px;
    height: 48px;
}

.category-item:hover {
    background-color: black;
}

.category-item a {
    display: block;
    padding: 9px 80px;
    color: #fff;
    font-size: 14px;
    line-height: 30px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-right {
    float: left;

}

.category-right li {
    width: 900px;
    height: 530px;
    background: #fff;

    display: none;
}

.active {
    background-color: rgb(32, 31, 31) !important;
}

.isShow {
    display: block !important;
}

.category-right li a {
    display: inline-block;
    margin-left: 50px;
}

.category-right li img {
    width: 80px;
    height: 80px;
}

//热门活动
.hot-event {
    margin-top: 15px;
}

.item-sp {
    color: #333;
    height: 24px;
    line-height: 24px;
    margin: 0 auto;
    text-align: left;
    width: 1180px;
}

.item-span {
    font-size: 24px;
    line-height: 24px;
    margin-right: 10px;
}

.hot-event-top {
    margin-top: 15px;
}

.hot-event-top a {
    display: inline-block;
    width: 280px;
    height: 242px;

}

.hot-event-top a img {
    width: 280px;
    height: 242px;
}

.hot-event-img {
    margin-right: 20px;
    margin-bottom: 20px;

}

.hot-event-top a:hover {
    box-shadow: 0 15px 15px rgba(16, 16, 16, 0.4);
    transform: translate3d(0, -6px, 0);
}

//家庭安防

.item-span {
    color: #333;
    height: 24px;
    line-height: 24px;
    margin: 0 auto;
    margin-top: 15px;
    text-align: left;
    width: 1180px;
}

.more-lnk {
    color: #666;
    font-size: 18px;
    line-height: 18px
}

//渲染
.goods-render {
    margin-top: 15px;
    width: 1180px;
    height: 960px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    li{
        width: 280px;
        height: 460px;
        background-color: #fff;
        text-align: center;
        cursor: pointer;
    }
    button{
        width: 126px;
        height: 30px;
        border: none;
        margin-top: 5px;
        margin-left: 70px;
        font-size: 14px;
        background: #eb473b;
        color: #fff;
        display: none;
        cursor: pointer;
    }

}
.goods-render li:hover button{
    display: block;
}
.goods-render li img{
    width: 240px;
    height: 240px;
    margin-top: 20px;
}
.title{
    font-size: 18px;
    line-height: 25px;
    margin-top: 30px;
    height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.price{
    text-align: center;
    line-height: 36px;
    margin-top: 10px;
    color: #dd0e00;
    font-size: 20px;
}
.goods-render li:hover{
    box-shadow: 0 15px 15px rgba(16, 16, 16, 0.4);
    transform: translate3d(0, -6px, 0);
}
.footer-font{
    height: 60px;
    line-height: 60px;
    font-size: 18px;
    text-align: center;
    color: #666;
}
// 侧边导航楼层
.right-nav{
    width: 60px;
    position: fixed;
    padding: 0 10px;
    top: 50%;
    left: 4%;
    background-color: #fff;
    display: none;
    li{
        text-align: center;
        height: 40px;
        font-size: 12px;
        line-height: 40px;
        border-bottom: 1px solid rgb(196, 194, 194);
        cursor: pointer;
        &:last-child{
            border: none;
        }
    }

}
